package com.zzk.protect.controller;

import com.zzk.protect.common.CommonResult;
import com.zzk.protect.pojo.SettlementType;
import com.zzk.protect.service.SettlementTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/settlementType")
public class SettlementTypeController {
    @Autowired
    private SettlementTypeService service;
    @GetMapping("/list")
    public CommonResult<List<SettlementType>> list(){
        return CommonResult.success(service.list());
    }

}
